package com.project.springappengine;
 
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.servlet.ModelAndView;
 
@Controller
public final class LoginController {
	
	@RequestMapping(value = "/clicked", method = RequestMethod.GET)
	public ModelAndView test() {
		
		ModelAndView model = new ModelAndView("clicked");
		String temp = "Clicked!";
		model.addObject("object", temp);
		return model;
	}
 
	@RequestMapping(value = "/login",  method = RequestMethod.GET)
	public ModelAndView Login(
	        @RequestParam(value = "login") String log,
	        @RequestParam(value = "password") String pass) {

		ModelAndView model = new ModelAndView("login");
		String temp = "Put to view!";
		model.addObject("object", temp);		
		return model;
	}
}